<?php $this->load->view('home/layout/header') ?>
    <div class="noticeDetail widthMax">
         <header class="notice-head am-cf">
            <div class="return am-fl">
                <a href="javascript:goHistoryBack('<?php echo site_url();?>')">
                    <i class="iconfont icon-zuojiantou"></i>
                </a>
            </div>
            <div class="title am-fl">公告</div>
             <div class="more am-fl sec-doment am-dropdown" data-am-dropdown>
                 <div class="am-dropdown-toggle" data-am-dropdown-toggle>
                     <i class="iconfont">&#xe63a;</i>
                 </div>
                 <ul class="am-dropdown-content">
                     <li><a href="<?php echo site_url();?>"><i class="iconfont">&#xe613;</i>首页</a></li>
                     <li>
                         <a class="sales-share" href="javascript:void(0)" data-link="<?php echo current_url();?>" data-name="<?php echo isset($headTitle) ? $headTitle : '一站式购物商城';?>">
                             <i class="iconfont">&#xe675;</i>分享
                         </a>
                     </li>
                 </ul>
             </div>
        </header>
        <div class="detailsList">
            <div class="list1">
                <div class="title"><?php echo !empty($noticeDetail->title) ? $noticeDetail->title : '';?></div>
                <div class="other am-cf">
                    <div class="time">
                        <a><?php echo !empty($noticeDetail->class_name) ? $noticeDetail->class_name : '';?></a>
                        <span><?php echo !empty($noticeDetail->edit_time) ? date('Y-m-d',$noticeDetail->edit_time) : '';?></span>
                        <span><?php echo !empty($noticeDetail->edit_time) ? date('H:i:s',$noticeDetail->edit_time) : '';?></span>
                    </div>
                    <div class="number"><i class="iconfont">&#xe663;</i><span><?php echo !empty($noticeDetail->pv) ? $noticeDetail->pv : '';?></span></div>
                </div>
                <div class="txt">
                    <?php echo !empty($noticeDetail->content) ? $noticeDetail->content : '';?>
                </div>
            </div>
            <?php if ( $tutor->num_rows() >0 ): ?>
            <div class="list2">
                <div class="takeaway">
                    <div class="title">资讯导读</div>
                    <ul class="takelist am-cf">
                        <?php foreach ($tutor->result() as $key => $val ): ?>
                            <li>
                                <a class="flex" href="<?php echo site_url('home/home/noticeDetail/'.$val->id);?>">
                                    <?php if (!empty($val->image)): ?>
                                        <?php $i=1;foreach (explode('|', $val->image) as $key => $value): ?>
                                            <?php if($i==2) break;?>
                                            <?php if (!empty($value)): ?>
                                                <img src="<?php echo $this->config->show_image_url($value)?>">
                                            <?php endif ?>
                                        <?php $i++;endforeach ?>
                                    <?php endif ?>
                                    <div class="txtRight flex-1">
                                        <span><?php echo $val->title;?></span>
                                        <p><?php echo trim(strip_tags($val->content));?></p>
                                    </div>
                                </a>
                            </li>
                        <?php endforeach ?>
                    </ul>
                </div>
            </div>
            <?php endif ?>
        </div>
    </div>
<?php $this->load->view('home/layout/share');?>
<?php $this->load->view('home/layout/footer') ?>